package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * 功能：公告表
 * 作者：刘涵茹
 * 日期：2024/3/15 10:12
 */
@Data
public class Notice {
    @TableId(type = IdType.AUTO)//自增
    private Integer id;//不用管，自动递增

    private String title;
    private String content;
    private Integer userid;
    private String time;
    private Boolean open;

    @TableField(exist = false)
    private String user;

}
